package com.ouc.dataMange.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ouc.dataMange.mapper.SysDataDownloadMapper;
import com.ouc.dataMange.domain.SysDataDownload;
import com.ouc.dataMange.service.ISysDataDownloadService;

/**
 * dataDownloadService业务层处理
 * 
 * @author yuhao
 * @date 2025-07-17
 */
@Service
public class SysDataDownloadServiceImpl implements ISysDataDownloadService 
{
    @Autowired
    private SysDataDownloadMapper sysDataDownloadMapper;

    /**
     * 查询dataDownload
     * 
     * @param id dataDownload主键
     * @return dataDownload
     */
    @Override
    public SysDataDownload selectSysDataDownloadById(Integer id)
    {
        return sysDataDownloadMapper.selectSysDataDownloadById(id);
    }

    /**
     * 查询dataDownload列表
     * 
     * @param sysDataDownload dataDownload
     * @return dataDownload
     */
    @Override
    public List<SysDataDownload> selectSysDataDownloadList(SysDataDownload sysDataDownload)
    {
        return sysDataDownloadMapper.selectSysDataDownloadList(sysDataDownload);
    }

    /**
     * 新增dataDownload
     * 
     * @param sysDataDownload dataDownload
     * @return 结果
     */
    @Override
    public int insertSysDataDownload(SysDataDownload sysDataDownload)
    {
        return sysDataDownloadMapper.insertSysDataDownload(sysDataDownload);
    }

    /**
     * 修改dataDownload
     * 
     * @param sysDataDownload dataDownload
     * @return 结果
     */
    @Override
    public int updateSysDataDownload(SysDataDownload sysDataDownload)
    {
        return sysDataDownloadMapper.updateSysDataDownload(sysDataDownload);
    }

    /**
     * 批量删除dataDownload
     * 
     * @param ids 需要删除的dataDownload主键
     * @return 结果
     */
    @Override
    public int deleteSysDataDownloadByIds(Integer[] ids)
    {
        return sysDataDownloadMapper.deleteSysDataDownloadByIds(ids);
    }

    /**
     * 删除dataDownload信息
     * 
     * @param id dataDownload主键
     * @return 结果
     */
    @Override
    public int deleteSysDataDownloadById(Integer id)
    {
        return sysDataDownloadMapper.deleteSysDataDownloadById(id);
    }
}
